package nl.saxion.act.wt;

public class Person {

	private String name, adress, city, email, username, password;
	private int id;

	public Person(/*int id, String name, String adress, String city, String email,
			String username, String password*/) {
//		this.id = id;
//		this.name = name;
//		this.adress = adress;
//		this.city = city;
//		this.email = email;
//		this.username = username;
//		this.password = password;
	}
	
	public Person(int id, String name, String adress, String city, String email,
			String username, String password) {
		this.id = id;
		this.name = name;
		this.adress = adress;
		this.city = city;
		this.email = email;
		this.username = username;
		this.password = password;
	}
	
	
	public boolean changePassword(String oldPassword, String newPassword){
		if(oldPassword.equals(password) ){
			password = newPassword;
			return true;
		} else {
			return false;
		}
	}
	
	public int getId(){
		return id;
	}
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAdress() {
		return adress;
	}

	public void setAdress(String adress) {
		this.adress = adress;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public void setPassword(String password){
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

}
